package org.qufenqi.api.service;

import org.qufenqi.api.common.CommonResponse;
import org.qufenqi.api.entity.Address;
import org.qufenqi.api.entity.Instalment;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.text.ParseException;
import java.util.List;


public interface BuyService {
    //获取地址
    CommonResponse<Address> getAddress(String id);

    //全款购买
     CommonResponse<String> fullPurchase(String userId, String itemId, int num);

    //分期购买
    CommonResponse<String> instalment(String userId, String itemId);

    //获取分期列表
     CommonResponse<List<Instalment>> getRepaymentList(String userId);

    //还款
    CommonResponse<String> repayment(String instalmentid) throws ParseException;
}
